package com.llc925.cst.myrecycleview_1.service;



import com.llc925.cst.myrecycleview_1.bean.Result;
import com.llc925.cst.myrecycleview_1.bean.UserBean;
import com.llc925.cst.myrecycleview_1.bean.UserInfo;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/4/16.
 */

public interface UserService {
    /*登录接口*/
    @GET("userLogin.do")
    Call<UserBean> getuserLogin(
            @Query("username") String username,
            @Query("userpass") String userpass
    );

    /*获取用户信息接口*/
    @GET("getUserById.do")
    Call<UserInfo> getUserInfo();

    /*注册接口*/
    @GET("userRegister.do")
    Call<Result> getuserRegister(
            @Query("username") String reg_username,
            @Query("userpass") String reg_password,
            @Query("mobilenum") String reg_telephonenumber,
            @Query("address") String reg_address

    );
}
